package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataBranchachiRecordDao;
import io.renren.entity.DataBranchachiRecordEntity;
import io.renren.service.DataBranchachiRecordService;



@Service("dataBranchachiRecordService")
public class DataBranchachiRecordServiceImpl implements DataBranchachiRecordService {
	@Autowired
	private DataBranchachiRecordDao dataBranchachiRecordDao;
	
	@Override
	public DataBranchachiRecordEntity queryObject(String id){
		return dataBranchachiRecordDao.queryObject(id);
	}
	
	@Override
	public List<DataBranchachiRecordEntity> queryList(Map<String, Object> map){
		return dataBranchachiRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataBranchachiRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(DataBranchachiRecordEntity dataBranchachiRecord){
		dataBranchachiRecordDao.save(dataBranchachiRecord);
	}
	
	@Override
	public void update(DataBranchachiRecordEntity dataBranchachiRecord){
		dataBranchachiRecordDao.update(dataBranchachiRecord);
	}
	
	@Override
	public void delete(String id){
		dataBranchachiRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataBranchachiRecordDao.deleteBatch(ids);
	}

	@Override
	public void deleteByMonth(String month) {
		// TODO Auto-generated method stub
		dataBranchachiRecordDao.deleteByMonth(month);
	}
	
}
